package co.edu.udea.iw.prestamos.ws;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import co.edu.udea.iw.prestamos.bl.RolBL;

@Path("roles")
@Component
@Transactional
public class RolResource {
	
	@Autowired
	private RolBL rolBL;
	
	@GET
	@Produces(MediaType.APPLICATION_JSON)
	public Object obtenerRoles(){
		return rolBL.obtenerRoles();
	}

}
